package com.bawei.module_home.goods_act.m;

import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;

import org.jetbrains.annotations.NotNull;

/**
 * @author : zhiyu
 * @date : 2021/12/13
 * @content :
 */
public class SearchGoodsViewModelFactry implements ViewModelProvider.Factory {
    @NonNull
    @NotNull
    @Override
    public <T extends ViewModel> T create(@NonNull @NotNull Class<T> modelClass) {
        return (T)new SearchGoodsViewModel(new SearchGoodsRepository(new SearchGoodsModel()));
    }
}
